package com.fadadianqi.logistics.admin.staff.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class SaffInitService {


    @Transactional
    public void init() {
        actionService.init(); // 将系统全部权限写入数据库
        groupService.init();
        masterService.init(); // 初始化地一个管理员
    }

    @Autowired
    private ActionService actionService;

    @Autowired
    private MasterService masterService;

    @Autowired
    private GroupService groupService;
}
